package com.group01.dto.Commodity;

import com.group01.annotation.Status;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Description 商品上下架DTO
 * @Author 翟玉龙
 * @Date 2024/6/21
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class CommodityUpdateStatusDTO {
    /**
     * 商品主键ID
     */
    @NotNull(message = "商品主键ID不能为空")
    private Integer id;

    /**
     * 0: 上架 1：下架
     */
    @Status
    private Integer status;

}
